<script type="text/javascript" src="selectteamfunctions.js">
</script>
<div id='content'>
<?php
if(isset($_SESSION['manager'])){
	include "../Controller/SubmitSquadController.php";
	if($_SESSION['manager']->getSelectedPlayers()){
		include "GenerateSubmitedSquad.php";
	}
	else {
		include "DefaultSelectTeam.php";
		include "../Controller/FilterListController.php";
		?>
<div id='playersTable'>		
<table id="ismElementDataTable" class="ismTable ismPlayerList">
	<tr>
		<th>Pos</th>
		<th><a class="ismPositionLink">All Players</a>
		</th>
		<th>Team</th>
		<th>$</th>
		<th><abbr title="Total score">Score</abbr>
		</th>
	</tr>
	<?php include "../Controller/OrderPlayersController.php"; ?>
</table>
</div>
</div>
</div>
	<?php
	
	}
}
else {
	echo "<br /><p id=loginNote'>Please enter your <a id='loginNoteLink'href='?page=Login'> login </a> details in order to select or view your team!</p><br />";
}
?>
